package exceptions;

/**
 * Encapsulates any exception in the input stream
 */
public class ReadStreamException  extends Exception { 
    private String message; 
    /**
     * Creating new object via message to be stored
     * @param message - is an error message of current excpetion 
     */
    public ReadStreamException(String message){ 
        this.message = message;
    } 
    @Override
    public String getMessage(){
        return "ReadStreamException: " + message; 
    } 
} 
